#!/bin/sh

# acquire ical from tokenized link
curl $(cat ${HOME}/.local/share/${USER}/.tuviennacallink) > ~/.tuviennacal

# import into calcurse
calcurse -i ${HOME}/.local/share/${USER}/.tuviennacal

# sieve out duplicates using uniq
cp ~/.calcurse/apts ~/.calcurse/apts.tmp
cat ~/.calcurse/apts.tmp | uniq > ~/.calcurse/apts
